

            function addArduinoCod (Blockly) {
            
                        
                        

                        
        Blockly.Arduino['EXT_SOUND_SENSORS_BLOCK_1608033170489'] = function(block)
        {
            let pin = this.getFieldValue('pin');
          
            Blockly.Arduino.definitions_['include_EXT_SOUND_SENSORS_BLOCK_1608033170489'] = ``;
            Blockly.Arduino.definitions_['define_EXT_SOUND_SENSORS_BLOCK_1608033170489'] = `#define AnalogPin${pin} ${pin}`;
            Blockly.Arduino.definitions_['setup_EXT_SOUND_SENSORS_BLOCK_1608033170489'] = `pinMode(AnalogPin${pin}, INPUT);`;
             return  [`analogRead(AnalogPin${pin})`];
        }
                    

                        
        Blockly.Arduino['EXT_SOUND_SENSORS_BLOCK_1608033170689'] = function(block)
        {
            let pin = this.getFieldValue('pin');
          
            Blockly.Arduino.definitions_['include_EXT_SOUND_SENSORS_BLOCK_1608033170689'] = ``;
            Blockly.Arduino.definitions_['define_EXT_SOUND_SENSORS_BLOCK_1608033170689'] = `#define DigitalPin${pin} ${pin}`;
            Blockly.Arduino.definitions_['setup_EXT_SOUND_SENSORS_BLOCK_1608033170689'] = `pinMode(DigitalPin${pin}, INPUT);`;
             return  [`digitalRead(DigitalPin${pin})==0`];
        }
                    
            return Blockly;
            }

            module.exports = addArduinoCod ;

        